package com.wuchao.sjwtutils;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author wuchao66
 * @Date 2023/2/25 10:11
 * @PackageName:com.wuchao.jwt
 * @ClassName: JWTToken
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
//什么样的牌构造
public class JWTToken implements AuthenticationToken {//呼应前端的request.js jwt
    // 密钥
    private String token;//有参构造

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }//原则

    @Override
    public Object getCredentials() {
        return token;
    }//凭证

}
